package com.example.swd1.gudong.main.user.mymedal;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.View;

import com.example.swd1.gudong.R;

/**
 * Created by user on 9/14/16.
 */
public class UnObtainMedalView extends View {
    public UnObtainMedalView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected void onDraw(Canvas canvas) {
        Paint paint = new Paint();
        paint.setAntiAlias(true);
        paint.setStrokeWidth(3);
        paint.setStyle(Paint.Style.FILL);
        paint.setColor(getResources().getColor(R.color.health_color_light_gray));

        int x=20,y=18,w=15,h=45;
        canvas.drawRect(x,y,x+w,y+h,paint);
        paint.setTextSize(45);
        canvas.drawText(getResources().getString(R.string.user_medal_un_obtain),70,55,paint);
    }
}
